<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<head>
	<title>物料列表</title>
</head>

<body>

		<form action="m!like.z?page.currentPage=1" method="post">
			<input type="text" name="like" value="${like}" />
			<button type="submit" >
				搜索
			</button>
		</form>

	<table class="list">
		<thead>
			<tr title="">
				<th>
					物料编号
				</th>
				<th>
					物料名称
				</th>
				<th>
					规格型号
				</th>
				<th>
					器件封装
				</th>
				<th>
					器件描述
				</th>
				<th>
					PCB封装
				</th>
				<th>
					临时编码
				</th>
				<th>
					采购状态
				</th>
			</tr>
		</thead>
		<c:forEach var="material" items="${display['duplicated']}">
			<tr>
				<td>
					${material.code }
				</td>
				<td>
					${material.name }
				</td>
				<td>
					${material.specification }
				</td>
				<td>
					${material.footprint }
				</td>
				<td>
					${material.description }
				</td>
				<td>
					${material.pcbDecal }
				</td>
				<td>
					${material.tmpCode }
				</td>
				<td>
					${material.state }
				</td>
			</tr>
		</c:forEach>
		<tr class="pagebutton">
			<td colspan="8">
				<jsp:include page="split_page.jsp">
					<jsp:param name="pagesize" value="50" />
					<jsp:param name="currentpage" value="${page.currentPage}" />
					<jsp:param name="rowcount" value="${page.rowCount}" />
					<jsp:param name="pagecount" value="${page.pageCount}" />
				</jsp:include>
			</td>
		</tr>
	</table>
	
</body>